// 员工管理
import layout from '@/layout'
export default {
  path: '/branches',
  component: layout,
  redirect: 'branches/operational-range',
  name: 'Branches',
  meta: {
    title: '员工管理',
    icon: 'el-icon-user'
  },
  children: [
    {
      path: 'operational-range',
      component: () => import('@/views/branches/operational-range/index'), // Parent router-view
      name: 'OperationalRange',
      meta: { title: '快递员管理' }
    },
    {
      path: 'driver',
      component: () => import('@/views/branches/driver/index'),
      name: 'Driver',
      meta: { title: '司机管理' }

    },
    {
      path: 'workArrange-manage',
      component: () => import('@/views/branches/workArrange-manage/index'),
      name: 'WorkArrangeManage',
      meta: { title: '排班管理' }
    },
    {
      path: 'WorkArrangeSetting',
      hidden: true,
      component: () => import('@/views/branches/workArrange-manage/WorkArrangeSetting'),
      name: 'WorkArrangeSetting',
      meta: { title: '排班设置' }
    },
    {
      path: 'MapContent',
      hidden: true,
      component: () => import('@/views/branches/operational-range/MapContent'),
      name: 'MapContent',
      meta: { title: '作业范围分配' }
    },
    {
      path: 'DriverDetail/:id?',
      hidden: true,
      component: () => import('@/views/branches/driver/DriverDetail'),
      name: 'DriverDetail',
      meta: { title: '司机详情' }
    }
  ]
}
